/*
*
* ProductSaleCompanyInfoBeanExample.java
* @author lang
* @date 2020-11-26 18:06:56
*/
package com.steel.yfmall.cloud.assistant.po.goods;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ProductSaleCompanyInfoBeanExample {
    /**
     * product_sale_company_info
     */
    protected String orderByClause;

    /**
     * product_sale_company_info
     */
    protected boolean distinct;

    /**
     * product_sale_company_info
     */
    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    private String groupByClause;

    private String selectFields;

    /**
     * 构造查询条件:product_sale_company_info
     * @Title: ProductSaleCompanyInfoBeanExample
     * @Description: ( )
     * @return 返回类型 null
     * @date 2020-11-26 18:06:56
     */
    public ProductSaleCompanyInfoBeanExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     * 设置排序字段:product_sale_company_info
     * @Title: setOrderByClause
     * @Description: ( 设置排序字段 )
     * @param 参数说明 类型:String	名称:orderByClause 排序字段
     * @return 返回类型 null
     * @date 2020-11-26 18:06:56
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     * 获取排序字段:product_sale_company_info
     * @Title: getOrderByClause
     * @Description: ( 获取排序字段 )
     * @return 返回类型 java.lang.String
     * @date 2020-11-26 18:06:56
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     * 设置过滤重复数据:product_sale_company_info
     * @Title: setDistinct
     * @Description: ( 设置过滤重复数据 )
     * @param 参数说明 类型:boolean	名称:distinct 是否过滤重复数据
     * @return 返回类型 null
     * @date 2020-11-26 18:06:56
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     * 是否过滤重复数据:product_sale_company_info
     * @Title: isDistinct
     * @Description: ( 是否过滤重复数据 )
     * @return 返回类型 boolean
     * @date 2020-11-26 18:06:56
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     * 获取当前的查询条件实例:product_sale_company_info
     * @Title: getOredCriteria
     * @Description: ( 获取当前的查询条件实例 )
     * @return 返回类型 java.util.List<Criteria>
     * @date 2020-11-26 18:06:56
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     *:product_sale_company_info
     * @Title: or
     * @Description: ( )
     *
     * @param 参数说明 类型:Criteria	名称:criteria 过滤条件实例
     * @return 返回类型 null
     * @date 2020-11-26 18:06:56
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     *:product_sale_company_info
     * @Title: or
     * @Description: ( )
     *
     * @return 返回类型 Criteria
     * @date 2020-11-26 18:06:56
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     * 创建一个查询条件:product_sale_company_info
     * @Title: createCriteria
     * @Description: ( 创建一个查询条件 )
     * @return 返回类型 Criteria
     * @date 2020-11-26 18:06:56
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     * 内部构建查询条件对象:product_sale_company_info
     * @Title: createCriteriaInternal
     * @Description: ( 内部构建查询条件对象 )
     * @return 返回类型 Criteria
     * @date 2020-11-26 18:06:56
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     * 清除查询条件:product_sale_company_info
     * @Title: clear
     * @Description: ( 清除查询条件 )
     * @return 返回类型 null
     * @date 2020-11-26 18:06:56
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void limit(Integer offset, Integer limit) {
        this.offset = offset;
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = groupByClause;
    }

    public String getGroupByClause() {
        return groupByClause;
    }

    public void setSelectFields(String selectFields) {
        this.selectFields = selectFields;
    }

    public String getSelectFields() {
        return selectFields;
    }

    /**
     * @title product_sale_company_info表的实体类
     * @description product_sale_company_info
     * @version 1.0
     * @author lang
     * @date 2020-11-26 18:06:56
     */
    protected abstract static class GeneratedCriteria implements java.io.Serializable {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyCodeIsNull() {
            addCriterion("sale_company_code is null");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyCodeIsNotNull() {
            addCriterion("sale_company_code is not null");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyCodeEqualTo(String value) {
            addCriterion("sale_company_code =", value, "saleCompanyCode");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyCodeNotEqualTo(String value) {
            addCriterion("sale_company_code <>", value, "saleCompanyCode");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyCodeGreaterThan(String value) {
            addCriterion("sale_company_code >", value, "saleCompanyCode");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyCodeGreaterThanOrEqualTo(String value) {
            addCriterion("sale_company_code >=", value, "saleCompanyCode");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyCodeLessThan(String value) {
            addCriterion("sale_company_code <", value, "saleCompanyCode");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyCodeLessThanOrEqualTo(String value) {
            addCriterion("sale_company_code <=", value, "saleCompanyCode");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyCodeLike(String value) {
            addCriterion("sale_company_code like", value, "saleCompanyCode");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyCodeNotLike(String value) {
            addCriterion("sale_company_code not like", value, "saleCompanyCode");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyCodeIn(List<String> values) {
            addCriterion("sale_company_code in", values, "saleCompanyCode");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyCodeNotIn(List<String> values) {
            addCriterion("sale_company_code not in", values, "saleCompanyCode");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyCodeBetween(String value1, String value2) {
            addCriterion("sale_company_code between", value1, value2, "saleCompanyCode");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyCodeNotBetween(String value1, String value2) {
            addCriterion("sale_company_code not between", value1, value2, "saleCompanyCode");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyNameIsNull() {
            addCriterion("sale_company_name is null");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyNameIsNotNull() {
            addCriterion("sale_company_name is not null");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyNameEqualTo(String value) {
            addCriterion("sale_company_name =", value, "saleCompanyName");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyNameNotEqualTo(String value) {
            addCriterion("sale_company_name <>", value, "saleCompanyName");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyNameGreaterThan(String value) {
            addCriterion("sale_company_name >", value, "saleCompanyName");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyNameGreaterThanOrEqualTo(String value) {
            addCriterion("sale_company_name >=", value, "saleCompanyName");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyNameLessThan(String value) {
            addCriterion("sale_company_name <", value, "saleCompanyName");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyNameLessThanOrEqualTo(String value) {
            addCriterion("sale_company_name <=", value, "saleCompanyName");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyNameLike(String value) {
            addCriterion("sale_company_name like", value, "saleCompanyName");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyNameNotLike(String value) {
            addCriterion("sale_company_name not like", value, "saleCompanyName");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyNameIn(List<String> values) {
            addCriterion("sale_company_name in", values, "saleCompanyName");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyNameNotIn(List<String> values) {
            addCriterion("sale_company_name not in", values, "saleCompanyName");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyNameBetween(String value1, String value2) {
            addCriterion("sale_company_name between", value1, value2, "saleCompanyName");
            return (Criteria) this;
        }

        public Criteria andSaleCompanyNameNotBetween(String value1, String value2) {
            addCriterion("sale_company_name not between", value1, value2, "saleCompanyName");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Short value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Short value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Short value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Short value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Short value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Short value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Short> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Short> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Short value1, Short value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Short value1, Short value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andActiveDateIsNull() {
            addCriterion("active_date is null");
            return (Criteria) this;
        }

        public Criteria andActiveDateIsNotNull() {
            addCriterion("active_date is not null");
            return (Criteria) this;
        }

        public Criteria andActiveDateEqualTo(Date value) {
            addCriterion("active_date =", value, "activeDate");
            return (Criteria) this;
        }

        public Criteria andActiveDateNotEqualTo(Date value) {
            addCriterion("active_date <>", value, "activeDate");
            return (Criteria) this;
        }

        public Criteria andActiveDateGreaterThan(Date value) {
            addCriterion("active_date >", value, "activeDate");
            return (Criteria) this;
        }

        public Criteria andActiveDateGreaterThanOrEqualTo(Date value) {
            addCriterion("active_date >=", value, "activeDate");
            return (Criteria) this;
        }

        public Criteria andActiveDateLessThan(Date value) {
            addCriterion("active_date <", value, "activeDate");
            return (Criteria) this;
        }

        public Criteria andActiveDateLessThanOrEqualTo(Date value) {
            addCriterion("active_date <=", value, "activeDate");
            return (Criteria) this;
        }

        public Criteria andActiveDateIn(List<Date> values) {
            addCriterion("active_date in", values, "activeDate");
            return (Criteria) this;
        }

        public Criteria andActiveDateNotIn(List<Date> values) {
            addCriterion("active_date not in", values, "activeDate");
            return (Criteria) this;
        }

        public Criteria andActiveDateBetween(Date value1, Date value2) {
            addCriterion("active_date between", value1, value2, "activeDate");
            return (Criteria) this;
        }

        public Criteria andActiveDateNotBetween(Date value1, Date value2) {
            addCriterion("active_date not between", value1, value2, "activeDate");
            return (Criteria) this;
        }
    }

    /**
     * product_sale_company_info
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * @title product_sale_company_info表的实体类
     * @description product_sale_company_info
     * @version 1.0
     * @author lang
     * @date 2020-11-26 18:06:56
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}
